﻿function alphaBackgrounds() { // 修正作为背景的png
	//var rslt = navigator.appVersion.match(/MSIE (d+.d+)/, '');
	// var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
	for (var i = 0; i < document.all.length; i++) {
		var bg = document.all[i].currentStyle.backgroundImage;
		if (bg) {
			if (bg.match(/.png/i) != null) {
				var mypng = bg.substring(5, bg.length - 2);
				// alert(mypng);
				document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"
						+ mypng + "', sizingMethod='crop')";
				document.all[i].style.backgroundImage = "url('')";
				// alert(document.all[i].style.filter);
			}
		}
	}
}
if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) {
	window.attachEvent("onload", alphaBackgrounds);
}